Greetings,
I am making an auto loader for a CNC machine. In one
thread I am picking up a part and moving it to a holding
position before it is placed into the spindle. I want it
to stay in this position until it gets a loading request
by an M Code in my CNC program.
My question is - How do I get a loop forever thread to
stop at a certain point and wait to continue until it gets
an input from another thread? Does anyone have a
suggestion on what the C code could look like? Is there
some sort of internal memory bit I could toggle on and off
for this function that is accessible across all threads?
Thanks,
Scott